package com.kgc.community.service;

import com.github.pagehelper.PageInfo;
import com.kgc.community.pojo.Exception;
import java.util.List;
import java.util.Map;

public interface ExceptionService {

    /**
     * 分页条件查询
     * @param pageNum
     * @param pageSize
     * @return
     */
    public PageInfo<Exception> searchExceptionByCondition(Map<Integer,Object> map, Integer pageNum, Integer pageSize);

    /**
     * 动态更新
     * @param exception
     * @return
     */
    public Integer updateSelectiveById(Exception exception);

    /**
     * 动态插入
     * @param exception
     * @return
     */
    public Integer insertSelective(Exception exception);

    /**
     * 动态删除
     * @param id
     * @return
     */
    public Integer deleteById(Integer id);

    /**
     * 多选删除
     * @param ids
     * @return
     */
    public Integer deleteByIdList(List<Integer> ids);


    public Exception searchById(Integer id);
}
